<?php
defined('IN_PHPCMS') or exit('No permission resources.'); 
/**
 * 添加喜欢统计
 */
$db = '';
$db = pc_base::load_model('content_model');
$MODEL = getcache('model','commons');
$CATEGORYS = getcache('category_content_1','commons');
$modelid = intval($_GET['modelid']);
$id = intval($_GET['id']);
$tablename = $db->table_name = $db->db_tablepre.$MODEL[$modelid]['tablename'];
$r = $db->get_one(array('id'=>$id));

$enjoy = <<<EOF
layui.use(['layer','jquery'], function(){
  layer = layui.layer
  ,$ = layui.jquery;
  var str = $('#enjoy').html();
  $('#enjoy').html({$r['digg']}+str);
});
EOF;
echo $enjoy;
?>